#ifndef __BSP_MPU6050_H__
#define __BSP_MPU6050_H__

#include "stm32f4xx.h"		/* STM32F4xx头文件 */

#define RCC_MPU6050_PORT (RCC_AHB1Periph_GPIOB)		/* GPIO端口时钟 */

#define MPU6050_SDA_PORT	GPIOB
#define MPU6050_SDA_PIN	GPIO_Pin_13

#define MPU6050_SCL_PORT	GPIOB
#define MPU6050_SCL_PIN	GPIO_Pin_14

#define MPU6050_I2C_ADDR 0xD0


uint8_t mpu6050_i2c_write(unsigned char slave_addr, unsigned char reg_addr,
                        unsigned char length, unsigned char const *data);
uint8_t mpu6050_i2c_read(unsigned char slave_addr, unsigned char reg_addr,
                       unsigned char length, unsigned char *data);  








#endif /* __BSP_MPU6050_H__ */

